package cn.lsnu.modules.watch.service;

import cn.lsnu.common.interfacetools.interfaceentity.Page;
import cn.lsnu.common.interfacetools.interfaceservice.BaseService;
import cn.lsnu.modules.watch.entity.WatchMaintEntity;
import cn.lsnu.modules.watch.mapper.WatchMaintMapper;
import cn.lsnu.utils.Guuid;
import org.springframework.stereotype.Service;

import java.util.Date;
import java.util.List;


@Service
public class WatchMaintService extends BaseService<WatchMaintEntity,WatchMaintMapper> {
    @Override
    public void save(WatchMaintEntity entity) throws Exception {
        entity.setMaintId(Guuid.uuid());
        entity.setMaintDate(new Date());
        super.save(entity);
    }

    @Override
    public WatchMaintEntity get(String key) throws Exception {
        return super.get(key);
    }

    @Override
    public WatchMaintEntity getEntity(WatchMaintEntity entity) throws Exception {
        return super.getEntity(entity);
    }

    @Override
    public List<WatchMaintEntity> findList(WatchMaintEntity entity) throws Exception {
        return super.findList(entity);
    }

    @Override
    public Page<WatchMaintEntity> findPage(WatchMaintEntity entity) throws Exception {
        return super.findPage(entity);
    }

    @Override
    public void delete(WatchMaintEntity entity) throws Exception {
        super.delete(entity);
    }

    @Override
    public void update(WatchMaintEntity entity) throws Exception {
        super.update(entity);
    }
}
